<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Document</title>
    </head>
    <body></body>
</html>
<script>
    const ips = `127.0.0.1,159.0.1.9,159.0.0.9`;
    const regx = /\d{3}\.\d\.\d\.\d(?=,)/gi;
    console.log(ips.match(regx));
</script>
